package sk.atletis.atletika;

import android.net.Uri;

public class CompetitionsContract 
{
	public static final String _ID = "_id";
	public static final String NAME = "Name";
	public static final String DATE_FROM = "DateFrom";
	public static final String CITY = "City";
	public static final String RESULTS_PATH = "ResultsPath";
	public static final String ADDED = "Added";
	
	public static final String COMPETITIONS = "competitions";
	public static final String COMPETITION_ID = "competitionId";
	
	public static final Uri CONTENT_URI_COMPETITIONS = Uri.withAppendedPath(AtletikaProvider.CONTENT_URI, COMPETITIONS);
	
	// Selected columns
	public static final String[] PROJECTION = { _ID, NAME, DATE_FROM, CITY, RESULTS_PATH };
	
	// Sort
	public static final String SORT_DEFAULT = _ID + " DESC";
	public static final String SORT_DATE_DESC = DATE_FROM + " DESC";
	
	// MIME type
	public static final String MIME_TYPE_ITEM = "vnd.android.cursor.item/vnd.sk.atletis.atletika.competition";
	public static final String MIME_TYPE_DIR = "vnd.android.cursor.dir/vnd.sk.atletis.atletika.competition";
}
